
import java.util.Scanner;
public class exemplo1 {

	
	public static void main(String[] args) {
		
	Scanner	leia = new Scanner (System.in);
	int cont = 0;
	
	while (cont <= 3)
	{
		System.out.println("Digite a primeira nota: ");
		double p1 = leia.nextDouble();
		System.out.println("Digite a segunda nota: ");
		double p2 = leia.nextDouble();
		
		double media = (p1 + p2) / 2;
		
		System.out.printf("Media das provas: %.2f ", media);
		
		cont++;
	}
	
	

	}

}
